sign: fix memory leaks and code cleanup
authorDenis Pynkin <denis.pynkin@collabora.com>
Wed, 4 Sep 2019 23:04:25 +0000 (02:04 +0300)
committerDenis Pynkin <denis.pynkin@collabora.com>
Wed, 25 Mar 2020 12:23:54 +0000 (15:23 +0300)
commit557f42360945b4f70196d7ec4c50443e10918573
tree7830926fa4ca32b621b508f6c96da45d046fa966
parent5fc2ddff30c5c8b40e60fd4dd7a6b8c1fab2e98e
sign: fix memory leaks and code cleanup

Return `const char *` instead of copy of the string -- this allow to
avoid unneeded copying and memory leaks in some constructions.
Minor code cleanup and optimisations.

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
src/libostree/ostree-repo-pull.c
src/libostree/ostree-sign-dummy.c
src/libostree/ostree-sign-dummy.h
src/libostree/ostree-sign-ed25519.c
src/libostree/ostree-sign-ed25519.h
src/libostree/ostree-sign.c
src/libostree/ostree-sign.h